package cn.wolfcode.wolf2w.util;

import org.apache.shiro.crypto.hash.Md5Hash;

import java.util.Arrays;


public class MD5util{
    /**
     * MD5加密类
     *
     * @param str 要加密的字符串
     * @return 加密后的字符串
     */
    public static Object code(String str,String solt) {
        Md5Hash md5 = new Md5Hash(str, solt, 3);
        return md5;

    }

    public static void main(String[] args) {
        System.out.println(code("1111", "WuHui"));
    }
}
